import http from './interface'

export const addBook = (data) => {
    return http.request({
        url: 'noToken/donateBook/',
        method: 'POST', 
        data,
    })
}

export const backBook = (data) => {
    return http.request({
        url: 'noToken/backBook/',
        method: 'POST', 
        data,
    })
}


export const bookList = (data) => {
    return http.request({
        url: 'noToken/bookList/'+data.siteId+'?pageSize=10&pageNum='+data.pageNum,
        method: 'GET', 
    })
}

export const borrowBook = (bookId) => {
    return http.request({
        url: 'noToken/borrowBook/'+bookId,
        method: 'GET', 
    })
}

// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
    addBook,
    bookList,
    borrowBook,
    backBook,
}